package com.feng.service;

import com.feng.dao.AdminDao;
import com.feng.entity.Admin;

public class ServeAdminLogin {
	AdminDao dao = new AdminDao();
	public Admin findByName(String name) {
		Admin admin = new Admin();
		admin.setUsername(name);
		Admin a = dao.findByName(admin);
		return a;
	}
	public void update(Admin a) {
		dao.update(a);
		
	}

}
